<%@ page import="java.util.List" %>
<%@ page import="com.jiazhong.mybatis.m6.bean.Emp" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2025/7/23
  Time: 11:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Object obj = session.getAttribute("list");
    if (obj == null) {
        response.sendRedirect("emp");
        return;
    }
    List<Emp> list = (List<Emp>) obj;
    for (Emp e : list) {
        out.print(e + "<br/>");
    }
%>
</body>
</html>
